home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / JASC After Shot / af100evp.exe / Data1.cab / single.xsl23 < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-11  |  4.4 KB  |  112 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  5.     <xsl:template match="/">
  6.         <HTML>
  7.             <xsl:apply-templates/>
  8.         </HTML>
  9.     </xsl:template>
  10.     <xsl:template match="photos">
  11.         <xsl:apply-templates/>
  12.     </xsl:template>
  13.     <xsl:template match="album">
  14.         <title>
  15.             <xsl:value-of select="@title"/>
  16.         </title>
  17.         <xsl:apply-templates select="imagelist"/>
  18.     </xsl:template>
  19.     <xsl:template match="imagelist">
  20.         <xsl:apply-templates select="imageinfo"/>
  21.     </xsl:template>
  22.     <xsl:template match="imageinfo">
  23.         <xsl:element name="ixfile">
  24.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  25.              <head>
  26.         
  27.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  28.         <meta name="copyright" content="Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. All rights reserved."/>
  29.         
  30.     </head>
  31.  
  32.             <BODY bgcolor="#CCCCFF">
  33.                 <table align="center" width="100%" height="100%" bgcolor="#ffffcc">
  34.                     <tr>
  35.                         <td valign="middle"><table align="center" border="7" bordercolor="#9999ff"><tr><td><table align="center" cellspacing="0" cellpadding="0" border="0" >
  36.                                 <tr>
  37.                                     <td width="50" height="50"><br kludge=""/></td>
  38.                                     <td height="50"><div align="center"><strong><xsl:value-of select="title"/></strong></div></td>
  39.                                     <td width="50" height="50"><br kludge=""/></td>
  40.                                 </tr>
  41.                                 <tr>
  42.                                     <td width="50"><br kludge=""/></td>
  43.                                     <td bgcolor="#9999ff"><div align="center"><IMG vspace="7" hspace="7"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  44.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  45.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  46.                                     <td width="50"><br kludge=""/></td>
  47.                                 </tr>
  48.                                 <tr>
  49.                                     <td width="50" height="50"><br kludge=""/></td>
  50.                                     <td height="50"><div align="center"><xsl:apply-templates select="previous"/>
  51.                                                                     <xsl:apply-templates select="next"/></div></td>
  52.                                     <td width="50" height="50"><br kludge=""/><div align="center"><xsl:choose>
  53.                                                             <xsl:when test="audio_info/@fname[. != '']">
  54.                                                                 <div align="left"><xsl:apply-templates select="audio_info"/></div>
  55.                                                             </xsl:when>
  56.                                                             <xsl:otherwise>
  57.                                                                 <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  58.                                                             </xsl:otherwise>
  59.                                                         </xsl:choose></div></td>
  60.           <td><div align="center"><xsl:choose>
  61.                                                     <xsl:when test="movie_info/@fname[. != '']">
  62.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  63.                                                     </xsl:when>
  64.                                                     <xsl:otherwise>
  65.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  66.                                                     </xsl:otherwise>
  67.                                                 </xsl:choose></div></td>
  68.                                 </tr>
  69.  
  70.                             </table></td></tr></table></td>
  71.                     </tr>
  72.                 </table>
  73.             </BODY>
  74.         </xsl:element>
  75.     </xsl:template>
  76.     <xsl:template match="previous">
  77.         <xsl:value-of/>
  78.         <xsl:choose>
  79.             <xsl:when match="previous[@fname != '']">
  80.                 <A>
  81.                     <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  82.         <<<<<<<<</A>
  83.             </xsl:when>
  84.             <xsl:otherwise><<<<<<<<  </xsl:otherwise>
  85.         </xsl:choose>
  86.     </xsl:template>
  87.     <xsl:template match="audio_info">
  88.         <xsl:if match="audio_info[@fname != '']">
  89.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  90.                 <img border="0" src="graphics/sound.gif"/></A>
  91.         </xsl:if>
  92.     </xsl:template>
  93.     <xsl:template match="movie_info">
  94.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  95.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  96.     </xsl:template>
  97.  
  98.     <xsl:template match="next">
  99.         <xsl:value-of/>
  100.         <xsl:choose>
  101.             <xsl:when match="next[@fname != '']">
  102.                 <A>
  103.                     <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>  
  104.       >>>>>>>></A>
  105.             </xsl:when>
  106.             <xsl:otherwise>>>>>>>>></xsl:otherwise>
  107.         </xsl:choose>
  108.     </xsl:template>
  109. </xsl:stylesheet>
  110.  
  111.  
  112.